package com.only4play.practice.invoice.entitymapper;


import com.only4play.codegen.support.entitymapper.DateMapper;
import com.only4play.codegen.support.entitymapper.GenericEnumMapper;
import com.only4play.practice.invoice.core.domainservice.model.exchange.InvoiceItemModel;
import com.only4play.practice.invoice.core.entity.InvoiceItem;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author mdy
 */
@Mapper(
        uses = {
                GenericEnumMapper.class,
                DateMapper.class
        }
)
public interface InvoiceItemObjectMapper {

    InvoiceItemObjectMapper INSTANCE = Mappers.getMapper(InvoiceItemObjectMapper.class);

    InvoiceItem itemModel2InvoiceItem(InvoiceItemModel item);
}
